package inventoryServe.po;


import java.util.Date;

public class User  {

      /**
     * 主键 id
     */

      private Integer id;

      /**
     * 头像 外链
     */
      private String avatar;

      /**
     * 用户名 登录账号
     */
      private String username;

      /**
     * 密码
     */
      private String password;

      /**
     * 性别
     */
      private Integer sex;

      /**
     * 手机号码
     */
      private String phoneNum;

      /**
     * 邮箱
     */
      private String email;

      /**
     * 状态 0 禁用 1 正常
     */
      private Integer isEnable;

      /**
     * role
     */
      private Role role;

      /**
     * 仓库store
     */
      private Store store;

      /**
     * 创建时间
     */
      private Date createTime;

      /**
     * 修改时间
     */
      private Date updateTime;


      public Integer getId() {
        return id;
      }

      public void setId(Integer id) {
        this.id = id;
      }

      public String getAvatar() {
        return avatar;
      }

      public void setAvatar(String avatar) {
        this.avatar = avatar;
      }

      public String getUsername() {
        return username;
      }

      public void setUsername(String username) {
        this.username = username;
      }

      public String getPassword() {
        return password;
      }

      public void setPassword(String password) {
        this.password = password;
      }

      public Integer getSex() {
        return sex;
      }

      public void setSex(Integer sex) {
        this.sex = sex;
      }

      public String getPhoneNum() {
        return phoneNum;
      }

      public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
      }

      public String getEmail() {
        return email;
      }

      public void setEmail(String email) {
        this.email = email;
      }

      public Integer getIsEnable() {
        return isEnable;
      }

      public void setIsEnable(Integer isEnable) {
        this.isEnable = isEnable;
      }


      public Role getRole() {
        return role;
      }

      public void setRole(Role role) {
        this.role = role;
      }

      public Store getStore() {
            return store;
      }

      public void setStore(Store store) {
            this.store = store;
      }

      public Date getCreateTime() {
        return createTime;
      }

      public void setCreateTime(Date createTime) {
        this.createTime = createTime;
      }

      public Date getUpdateTime() {
        return updateTime;
      }

      public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
      }

        @Override
        public String toString() {
            return "User{" +
                    "id=" + id +
                    ", avatar='" + avatar + '\'' +
                    ", username='" + username + '\'' +
                    ", password='" + password + '\'' +
                    ", sex=" + sex +
                    ", phoneNum='" + phoneNum + '\'' +
                    ", email='" + email + '\'' +
                    ", isEnable=" + isEnable +
                    ", role=" + role +
                    ", store=" + store +
                    ", createTime=" + createTime +
                    ", updateTime=" + updateTime +
                    '}';
        }
}
